<template>
    <div id="answer-oral-container">
      <div class="main">
        <el-table border>
          <el-table-column align="center" type="index" label="序号" width="80"></el-table-column>
          <el-table-column align="center" prop="resource_role_name" label="角色"></el-table-column>
          <el-table-column align="center" prop="resource_oral_content" label="对话内容"></el-table-column>
          <el-table-column align="center" prop="file_url" label="原音">
            <template slot-scope="scope">
              <i class="el-icon-video-pause" v-if="scope.row.isPlayOk"></i>
              <i class="el-icon-video-play" v-if="!scope.row.isPlayOk"></i>
              <audio :src="scope.row.file_url" v-show="false"></audio>
            </template>
          </el-table-column>
          <el-table-column align="center" label="录音">
            <template>
              <i class="el-icon-mic"></i>
            </template>
          </el-table-column>
        </el-table>
      </div>
    </div>
</template>

<script>
export default {
  name: 'answerPanelForOral',
  props: {
    subjectDetail: Object,
    trainingName: String,
    trainingId: String,
    stuTaskCaseId: String,
    stuNodeCaseId: String
  }
}
</script>

<style scoped lang="scss">
  .answer-oral-container{
    width: 100%;
    display: flex;
    justify-content: center;
    .main{
      width: 1200px;
      height: 80vh;
    }
  }
</style>
